import service from '@/utils/request';

//资源管理
export function publicquerybypage(payload = {}) {
    return service.get('/sourcedetail/queryAll', {params:payload})
}
//资源管理添加 
export function publicquerybypageadd(payload = {}) {
    return service.post('/sourcedetail/add', payload)
}
//资源管理删除 全删 
export function delall(payload = {}) {
    return service.delete('/sourcedetail/deletefew', {params:payload})
}
//资源管理删除 单删
export function singledelall(payload = {}) {
    return service.delete('/sourcedetail/deleteById', {params:payload})
}
//资源管理 查询
export function publicha(payload = {}) {
    return service.get('/sourcedetail/queryById', {params:payload})
}

//角色管理
export function role(payload = {}) {
    return service.get('/role/queryAll', {params:{payload}})
}
//角色管理添加 no
 export function roleadd(payload = {}) {
    return service.post('/role/add', payload)
}
//组织管理
export function origin(payload = {}) {
    return service.get('/organization/queryByPage', {params:{payload}})
}
//用户管理
export function yonghu(payload = {}) {
    return service.get('/user/queryAll', {params:{payload}})
}
//操作日志
export function rizhi(payload = {}) {
    return service.get('/operation/queryAll', {params:{payload}})
}

